<script>
function settingsSave(){
	var sma = getCookie("Msma37");
	if (sma == undefined){
		alert("Could not finde cookie! Try to go to other page and back or try after 5 seconds!")
		return false;
	}
	var sid = localStorage.getItem("Msid37");
	if(sid == null){
		alert("Could not finde cookie! Try to logout and in or try after 5 seconds!")
		return false;
	}
	codeInfo();
	return true;
}
function codeInfo(){
    var elems = document.getElementsByTagName('select'), i;
	for (i = 0; i < elems.length; i++) {
		if(elems[i].form[elems[i].id][0].type == "hidden") elems[i].form[elems[i].id][0].value = elems[i].value;
		else elems[i].form[elems[i].id][1].value = elems[i].value;
	}
	elems = document.getElementsByTagName('input')
	for (i = 0; i < elems.length; i++) {
		if((' ' + elems[i].className + ' ').indexOf(' checkbox ') > -1) {
			if(elems[i].checked) elems[i].form[elems[i].id][1].value = "True";
			else elems[i].form[elems[i].id][1].value = "False";
		}
	}
	for (i = 0; i < elems.length; i++){
		if((' ' + elems[i].className + ' ').indexOf(' tocode ') > -1) {
			elems[i].style.color = "white";
			elems[i].value = toCode(elems[i].value);
		}
	}
}
</script>
%INFO%
%FORM%